An Efficient Hash-Selection-Based Blockchain …

261

8

Performance Comparison

To compare the performance of our model of blockchain with existing blockchain

models, we set up a peer-to-peer network using the following devices: Raspberry Pi

2B, Xiaomi Redmi 3, MacBook Pro M1, and a custom desktop with the processor

AMD Ryzen™9 5900X fixed at a 4.9 GHz overclock. These devices have a huge

variance in terms of computational power as seen in Fig. 9 and resemble a viable

IIoTnetwork.Weimplementedourproposedmodelofblockchainarchitecturewithin

this network using a target difference of 15 and mined 100 blocks in each device.

The average computational time per block mined is calculated for each device. This

experiment is now repeated using the Bitcoin model of blockchain in this same P2P

network using the same target difference. Again, the average computational time per

block mined for each device is noted for the Bitcoin model. A comparison of the

mean computational time per block mined for each specific device for both models

has been given in Table 5. The mean computational time per block mined of the

whole P2P network is compared for both models in Fig. 11.

From Table 5, it can be observed that our model has lesser computational time

per block generated across all the devices in the network indicating a higher mining

rate. Figure 11 shows that our proposed model takes less than 1% time on average

Fig. 11 Comparison of mean computational time per block generated between our proposed model

and the bitcoin model over the P2P network

Table 5 Comparison of computational time per block generated between our proposed model and

the bitcoin model

Implementation

Computational time per block generated (ms)

Raspberry Pi 2B

Xiaomi Redmi 3

MacBook Pro M1

Custom Desktop

Bitcoin model

901,536.0502

114,056.2563

9486.709635

2096.998156

Proposed model

2.719635

1.624886

8170.194398

1927.410954